package com.example.demo.common;

public enum  BusinessStateCode {
    SUCCEED("0","成功"),
    FAIL("-1", "失败"),

    LOGIN_EXPIR("1001", "token到期"),

    NO_PERMISSION("1002", "没权限访问"),
    VALIDATE_ERROR("-2", "参数校验失败"),

    SYS_OPEN_OR_CLOSE("1003", "系统暂未开放");

    //other
    ;

    private String code;
    private String msg;

    BusinessStateCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
